package chain;

/**
 * @Author: 582895699@qq.com
 * @Desctription: 责任链模式
 * @Date: Created in 2021/12/28 11:07
 */
public class ChainOfResponsibilityPattern {

    public static void main(String[] args) {
        Handler concreteHandler = new ConcreteHandler();
        Handler concreteHandler2 = new ConcreteHandler2();

        concreteHandler.setNext(concreteHandler2);

        concreteHandler.handlerRequest("two");
    }
}
